package com.travel.user.controller;

import com.travel.entity.dto.ResultVO;
import com.travel.user.service.ShoujiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("zc")
public class ShoujiController {

    @Autowired(required = false)
    private ShoujiService shoujiService;

    @RequestMapping("zhuce")
    public ResultVO zhuce(String userAccount){
        return shoujiService.sendCode(userAccount);
    }

    @RequestMapping("verifyCode")
    public ResultVO verifyCode(String userAccount,String code){
        return shoujiService.verifyCode(userAccount,code);
    }
}
